package org.buweb.practice;

import java.util.*;

public class PersonClassTestApp {

    public static void main(String[] args) {
        BUClass buClass = new BUClass();
        List cl = buClass.getClassList();
        System.out.println("Full Class List: ");
        printList(cl);
        Collections.sort(cl);
        System.out.println("**************************************************");
        System.out.println("Full Class List, sorted: ");
        printList(cl);
        System.out.println("*********** FINISHED! ***************");
                
    }
    
    private static void printList(List l) {
        Iterator it = l.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }
    }
    
}
